Blitz (19/40)

From:Th. Will
Date:23 Sep 2001 at 02:58:06
Subject:Re: How to get amount of total Chip/Fast memory

> Hi all !
>
> So maybe my email was lost so I post it again:
>
> Simple question:
>
> How to get the amount of total Chip/Fast memory ?
> (NOT the free memory)
>
> Ciao,

Hi Thilo ;)

It´s very easy but we dont want to use the standard blitz commands, because
we want use OS commands
in fact of a much smaller sizze (you will save aobut 9kb of exesizze ;)

I am not really sure of what do you want... Only amounf of full chip and
fast splitted - or? However, here we go:

Function.l MyFastFree{}
Function Return AvailMem_($800004)
End Function

print MyFastFree{}
clickmouse
End

If you have 32 mb of fast ram, calculate 32mb * 1024 * 1024 = the result
that blitz will print out ;)
If you just want only the amount of chip mem, replace the $800004 to $800002
for ChipMem
or just try $80000 for TotalMem.... Hope it helps you a bit...

greetz
"Mr.Vain of Secretly!" - Thorsten Will

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie